From 6ee67467d59374c17bc0916626155f4ded41ee21 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Mon, 7 May 2007 08:06:30 +0000 Subject: [PATCH] (mac-ts-unicode-for-key-event): Check if text is available. --- lisp/term/mac-win.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el index 51274e6f5be..6370b40d367 100644 --- a/lisp/term/mac-win.el +++ b/lisp/term/mac-win.el @@ -2104,7 +2104,8 @@ either in the current buffer or in the echo area." (coding (or (cdr (assq (car script-language) mac-script-code-coding-systems)) 'mac-roman))) - (mac-unread-string (mac-utxt-to-string text coding)))) + (if text + (mac-unread-string (mac-utxt-to-string text coding))))) ;; kEventClassTextInput/kEventTextInputUpdateActiveInputArea (define-key mac-apple-event-map [text-input update-active-input-area] -- 2.30.2